package demo1;

/**
 * 观察者-看NBA的同事.
 *
 * @author GongXincheng
 * @since 2019-09-23 13:40
 */
public class ObserverNba extends BaseObserver {

    ObserverNba(String name, BaseSubject subject) {
        super(name, subject);
    }

    @Override
    void update() {
        System.out.println(String.format("%s ，%s -> 关闭NBA比赛，继续工作！",
                this.subject.getSubjectState(), this.name));
    }
}
